package van.planifolia.factory.methodfactory;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/8 17:37
 */
public abstract class NoteBook {
    /**
     * 公共的笔记本方法
     */
    public abstract void show();
}
class DellNoteBook extends NoteBook{
    @Override
    public void show() {
        System.out.println("这是Dell笔记本");
    }
}
class MiNoteBook extends NoteBook{
    @Override
    public void show() {
        System.out.println("这是Mi笔记本");
    }
}
